﻿@{
	// Add new controller or colour here
	IDictionary<string, string> controllers = new Dictionary<string, string>() {
		{"Library", "library"},
		{"IdeaBoard", "idea board"},
		{"Photo", "photo"},
	};

	IList<string> colours = new List<string>() { "blue", "lime", "orange", "pink" };

	string controller = Convert.ToString(ViewContext.Controller.ValueProvider.GetValue("controller").RawValue);
}

<a href="@Url.Action("Index","Main")"><span class="logo logo@(controller)">&nbsp;</span></a>
<div class="menu">
	<ul>
		@for (int index = 0; index < controllers.Count; index++)
		{
			<li>
			<a href="@Url.Content(string.Concat(@"~/",controllers.Keys.ElementAt(index)))" @(controllers.Keys.ElementAt(index) == controller ? "class=active" : string.Empty)>
					@controllers.Values.ElementAt(index)
				</a>
				<span class="menuBorder @(colours[index % colours.Count])">&nbsp;</span>
			</li>
		}
	</ul>
</div>